package com.deity.news.service;

import java.util.List;

import com.deity.news.bean.UploadFile;
import com.deity.news.dao.TempUploadFileDAO;

public class UploadFileService {
	
	public static int amountAll(){
     	return TempUploadFileDAO.amountAll();
	}
	
	public static int amountVideoFiles(){
     	return TempUploadFileDAO.amountVideoFiles();
	}
	
	public static List<UploadFile> find(int start, int size){
     	return TempUploadFileDAO.find(start, size);
	}
	
	public static List<UploadFile> findVideoFiles(int start, int size){
     	return TempUploadFileDAO.findVideoFiles(start, size);
	}
	
	public static UploadFile findById(int id){
		return TempUploadFileDAO.findById(id);
	}
	
	public static int remove(int id){
		return TempUploadFileDAO.remove(id);
		
	}
	
	public static int addUploadFile(UploadFile uploadFile){
		return TempUploadFileDAO.addUploadFile(uploadFile);
	}

}
